package com.yzg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/12 13:13
**/
/**
    * 产品属性分类表
    */
@ApiModel(value="com-yzg-pojo-ProductAttributeCategory")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pms_product_attribute_category")
public class ProductAttributeCategory implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    @TableField(value = "name")
    @ApiModelProperty(value="")
    private String name;

    /**
     * 属性数量
     */
    @TableField(value = "attribute_count")
    @ApiModelProperty(value="属性数量")
    private Integer attributeCount;

    /**
     * 参数数量
     */
    @TableField(value = "param_count")
    @ApiModelProperty(value="参数数量")
    private Integer paramCount;

    @ApiModelProperty(value = "下级")
    @TableField(exist = false)
    private List<ProductAttribute> children;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_ATTRIBUTE_COUNT = "attribute_count";

    public static final String COL_PARAM_COUNT = "param_count";
}